<template>
  <view class="my-container">
    <my-login v-if="!token"></my-login>
    <my-userinfo v-else></my-userinfo>
  </view>
</template>

<script>
import { mapState } from 'vuex';
import badgeMix from '@/mixins/tabbar-badge.js';
export default {
  name: '',
  mixins: [badgeMix],
  components: {},
  data() {
    return {};
  },
  computed: { ...mapState('m_user', ['token','userinfo']) },
  created() {},
  mounted() {},
  onLoad() {},
  methods: {}
};
</script>

<style lang="scss">
page,
.my-container {
  background-color: #FFFFFF;
  height: 100%;
}
</style>
